package com.shop.entity;
/*CREATE TABLE orderLogistics (
   `id` BIGINT(16) NOT NULL auto_increment PRIMARY KEY COMMENT '物流表编号（主键）',
   `member_id` BIGINT(16) COMMENT '会员地址表编号',
   `merchant_id` BIGINT(16) COMMENT '商户地址表号', 
   `merchantorder_id` BIGINT(16) COMMENT '商户订单编号（外键）',
   foreign key (`merchantorder_id`) references merchantorder(`id`)
)ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;*/
/**
 * 
 * <b>订单物流表<b>
 * @author 威 
 * <br>2018年1月2日 下午2:47:19 
 *
 */
public class OrderLogistics {
	private Integer id ;
	private Integer memeberAddressId ; 		//会员地址id
	private Integer merchantAddressId ;	//商户地址id
	private MerchantOrder merchantOrder ;		//商户订单表外键 1:1
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMemeberAddressId() {
		return memeberAddressId;
	}

	public void setMemeberAddressId(Integer memeberAddressId) {
		this.memeberAddressId = memeberAddressId;
	}

	public Integer getMerchantAddressId() {
		return merchantAddressId;
	}

	public void setMerchantAddressId(Integer merchantAddressId) {
		this.merchantAddressId = merchantAddressId;
	}

	public MerchantOrder getMerchantOrder() {
		return merchantOrder;
	}

	public void setMerchantOrder(MerchantOrder merchantOrder) {
		this.merchantOrder = merchantOrder;
	}

	public String toString(){
		return "Address[id="+id+
				",merchantOrderId="+merchantOrder.getId()+
				",memeberAddressId="+memeberAddressId+
				",merchantAddressId="+merchantAddressId+
				"]" ;
	}
}
